﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WcfMail.Interface;

namespace WcfMail
{
    /// <summary>
    /// 系统消息类
    /// </summary>
    public class SystemMessage :ISysMsg 
    {
        public SystemMessage()
        { }

        public SystemMessage(string subject,string content,string msgType)
        {
            this.MsgSubject = subject;
            this.MsgContent = content;
            this.MsgType = msgType;
        }
        #region ISysMsg 成员

        /// <summary>
        /// 消息摘要（标题）
        /// </summary>
        public string MsgSubject
        {
            get;
            set;
        }

        /// <summary>
        /// 消息正文
        /// </summary>
        public string MsgContent
        {
            get;
            set;
        }

        /// <summary>
        /// 消息类型
        /// </summary>
        public string MsgType
        {
            get;
            set;
        }

        #endregion
    }

    /// <summary>
    /// 系统消息事件参数类
    /// </summary>
    public class SystemMessageEventArgs : System.EventArgs
    {
        public ISysMsg Message = null;

        public SystemMessageEventArgs(SystemMessage message)
        {
            this.Message = message;
        }

        public SystemMessageEventArgs(ISysMsg  message)
        {
            this.Message = message;
        }
    }
}
